import requests
from lxml import etree


if __name__ == '__main__':
    url = 'https://www.zhipin.com/jinan/'
    headers = {
        'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36 Edg/110.0.1587.41'
    }
    page_text = requests.get(url=url,headers=headers)
    tree = etree.HTML(page_text)
    ul_list = tree.xpath('//*[@id="main"]/div/div[4]/ul')
    for ul in ul_list:
        li = ul.xpath('./li/a/div/text()')[0]
        print(li)